package com.xiaoyi.springboot.shiro;
 
import com.xiaoyi.springboot.enums.UserType;
import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author Scott
 * @create 2018-07-12 15:19
 * @desc
 **/
public class JwtToken implements AuthenticationToken {
	
	private static final long serialVersionUID = 1L;
	private String token;
    @Getter
    @Setter
    private String userType;
    public JwtToken() {
    }
    public JwtToken(String token,String userType) {
        this.token = token;
        this.userType = userType;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }
 
    @Override
    public Object getCredentials() {
        return token;
    }
}
